
int pin1 = 8;
int pin2 = 9;
int pin3 = 10;
int pin4 = 11;

void setup() {
  Serial.begin(9600);

}


void loop() {
  char msg[128];
  for (int i=8; i<=11; i++) {
    sprintf(msg, "开始给%d供电", i);
    Serial.println(msg);
    digitalWrite(i, HIGH);
    delay(800);
    
    digitalWrite(i, LOW);
  }
  
}
